package com.ruoyi.purchase.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购记录信息
对象 gas_purchase_record
 *
 * @author h w
 * @date 2022-12-09
 */
public class PurchaseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购记录ID */
    private Long purchaseRecordId;

    /** 供应单位ID */
    @Excel(name = "供应单位ID")
    private Long saleUnitId;

    /** 供应单位名 */
    @Excel(name = "供应单位名")
    private String saleUnitName;

    /** 采购单位ID */
    @Excel(name = "采购单位ID")
    private Long purchaseUnitId;

    /** 采购单位 */
    @Excel(name = "采购单位")
    private String purchaseUnit;

    /** 采购人 */
    @Excel(name = "采购人")
    private String purchasePerson;

    /** 采购充气量 */
    @Excel(name = "采购充气量")
    private BigDecimal gasNum;

    /** 进气单价 */
    @Excel(name = "进气单价")
    private BigDecimal singlePrice;

    /** 进气总价 */
    @Excel(name = "进气总价")
    private BigDecimal purchaseAmount;

    /** 其他费用 */
    @Excel(name = "其他费用")
    private BigDecimal otherAmount;

    /** 费用总额 */
    @Excel(name = "费用总额")
    private BigDecimal totalAmount;

    /** 采购付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购付款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    public void setPurchaseRecordId(Long purchaseRecordId)
    {
        this.purchaseRecordId = purchaseRecordId;
    }

    public Long getPurchaseRecordId()
    {
        return purchaseRecordId;
    }
    public void setSaleUnitId(Long saleUnitId)
    {
        this.saleUnitId = saleUnitId;
    }

    public Long getSaleUnitId()
    {
        return saleUnitId;
    }
    public void setSaleUnitName(String saleUnitName)
    {
        this.saleUnitName = saleUnitName;
    }

    public String getSaleUnitName()
    {
        return saleUnitName;
    }
    public void setPurchaseUnit(String purchaseUnit)
    {
        this.purchaseUnit = purchaseUnit;
    }

    public Long getPurchaseUnitId() {
        return purchaseUnitId;
    }

    public void setPurchaseUnitId(Long purchaseUnitId) {
        this.purchaseUnitId = purchaseUnitId;
    }

    public String getPurchaseUnit()
    {
        return purchaseUnit;
    }
    public void setPurchasePerson(String purchasePerson)
    {
        this.purchasePerson = purchasePerson;
    }

    public String getPurchasePerson()
    {
        return purchasePerson;
    }
    public void setGasNum(BigDecimal gasNum)
    {
        this.gasNum = gasNum;
    }

    public BigDecimal getGasNum()
    {
        return gasNum;
    }
    public void setSinglePrice(BigDecimal singlePrice)
    {
        this.singlePrice = singlePrice;
    }

    public BigDecimal getSinglePrice()
    {
        return singlePrice;
    }
    public void setPurchaseAmount(BigDecimal purchaseAmount)
    {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getPurchaseAmount()
    {
        return purchaseAmount;
    }
    public void setOtherAmount(BigDecimal otherAmount)
    {
        this.otherAmount = otherAmount;
    }

    public BigDecimal getOtherAmount()
    {
        return otherAmount;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setPurchaseTime(Date purchaseTime)
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime()
    {
        return purchaseTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseRecordId", getPurchaseRecordId())
            .append("saleUnitId", getSaleUnitId())
            .append("saleUnitName", getSaleUnitName())
            .append("purchaseUnit", getPurchaseUnit())
            .append("purchasePerson", getPurchasePerson())
            .append("gasNum", getGasNum())
            .append("singlePrice", getSinglePrice())
            .append("purchaseAmount", getPurchaseAmount())
            .append("otherAmount", getOtherAmount())
            .append("totalAmount", getTotalAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
